n = int(input())
scores = list(map(int, input().split()))
avg = sum(scores) / len(scores)
max_score = max(scores)
min_score = min(scores)
print(f'{avg:.2f} {max_score} {min_score}')